from flask import Blueprint, request, jsonify
import logging, os
from utils import common
payment_bp = Blueprint('payment', __name__, url_prefix='/payment')

# payment_bp = common.add_url_to_bp(os.path.dirname(__file__), payment_bp)


@payment_bp.route('payWays', methods=['GET'])
def payWays():
    return jsonify({'code':0, 'data': {"alipay": True, 'payjs':True}})


@payment_bp.record
def log(app):
    logging.info('register payment blueprint')
